package Tools;
import java.io.*;

/**
 * This class implements interface FilenameFilter and use for searching on mask
 * @author Ivan
 *
 */
public class MaskCaseSensitive implements FilenameFilter {
	
	private String mask;
	
	public MaskCaseSensitive(String mask){
		this.mask = mask;
	}
	
	@Override
	public boolean accept(File f, String s) {
		
		return s.contains(mask);
	}

}
